package day7;

/**
 * @author oldliu
 * @since 1.0
 */
public class Tourist {
    String name;
    int age;

    /**
     * 算票价
     * @return
     */
    public void calc(){
        if(age>60||age<14){
            System.out.println("免费");
            return;
        }
        System.out.println(name+"你好，付款20元");
    }
}
